package com.ddwl.schema.bo.gate;

import com.ddwl.schema.bo.base.BaseBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Fu Zhaohui
 */
@ApiModel(description = "阿里云Sms")
@Setter
@Getter
public class AliYunSmsBo extends BaseBo {

    @ApiModelProperty(value = "手机号码", required = true)
    @NotNull(message = "手机号码为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式错误")
    private String mobile;
    @ApiModelProperty(value = "验证码", required = true)
    private String code;
    @ApiModelProperty("会员名")
    private String memberName;
    @ApiModelProperty("好友名")
    private String friendName;
    @ApiModelProperty("邀请码")
    private String invitationCode;
    @ApiModelProperty(value = "模板编号", required = true)
    private String templateCode;
    @ApiModelProperty("内容")
    private String content;
}
